package com.kfm.test;

import org.junit.Test;
import oshi.SystemInfo;
import oshi.hardware.CentralProcessor;
import oshi.hardware.ComputerSystem;
import oshi.hardware.HWDiskStore;
import oshi.hardware.HardwareAbstractionLayer;

import java.util.List;
import java.util.logging.Handler;

public class Main {

    @Test
    public void t(){

        SystemInfo systemInfo = new SystemInfo();

        HardwareAbstractionLayer hardware = systemInfo.getHardware();

        ComputerSystem computerSystem = hardware.getComputerSystem();
        System.out.println(computerSystem);


        List<HWDiskStore> diskStores = hardware.getDiskStores();
        System.out.println(diskStores);

        CentralProcessor processor = hardware.getProcessor();
        System.out.println(processor);

    }
}
